package com.tsmti.system.service.impl;

import com.tsmti.core.common.service.impl.BaseServiceImpl;
import com.tsmti.system.entity.UserPageColumn;
import com.tsmti.system.service.UserPageColumnService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Package：com.tsmti.system.service.impl
 * @Class：UserPageColumnServiceImpl
 * @Description： TODO
 * @Author：zcw
 * @Date：Created in 2018/5/29 11:42
 * @Company:
 * @Version：
 * @Modified By:
 */
@Transactional(rollbackFor = Exception.class)
@Service("userPageColumnService")
public class UserPageColumnServiceImpl extends BaseServiceImpl<UserPageColumn> implements UserPageColumnService {
    @Override
    public List<UserPageColumn> findListByColId(String pageId, String colIds) {
        return findByHql(" from UserPageColumn where pageId=? and  colId in ("+colIds+") order by orders",pageId);
    }
}
